import RoleMenuSetting from "containers/permission-setting/role-menu-setting/role-menu-setting";
import RolePermissionSetting from "containers/permission-setting/role-permission-setting/role-permission-setting";
import RolePermissionSettingDetail from "containers/permission-setting/role-permission-setting/role-permission-detail/role-permission-detail";
import AuthSearcher from "containers/permission-setting/auth-searcher/auth-searcher";
//权限管理
const permissionSetting = {
  key:'permission-setting',
  icon: 'line-chart',
  tenant: true,
  admin: true,
  newPermission: true,//启用了新权限，此菜单才显示
  subMenu: [
    //职能管理
    {
      key:'role-menu-setting',
      url:'/main/permission-setting/role-menu-setting',
      components: RoleMenuSetting ,
      parent: 'permission-setting',
    },
    //职能授权
    {
      key:'role-permission-setting',
      url:'/main/permission-setting/role-permission-setting',
      components: RolePermissionSetting ,
      parent: 'permission-setting',
      children: {
        //授权详情
        RolePermissionSettingDetail: {
          key:'role-permission-setting-detail',
          url:'/main/permission-setting/role-permission-setting/role-permission-setting-detail/:permissionId',
          components: RolePermissionSettingDetail ,
          parent: 'role-permission-setting',
        },
      }
    },
    //授权查询
    {
      key:'auth-searcher',
      url:'/main/permission-setting/auth-searcher',
      components: AuthSearcher ,
      parent: 'permission-setting',
    },

  ]
};

export default permissionSetting
